//
//  LNHGoodsDetailViewModel.h
//  LNH
//
//  Created by cruise on 2018/2/6.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "LNHGoodsInfoAPI.h"

FOUNDATION_EXTERN NSString *kPropertyDataKeyGoodsDetailBannerUrl; //商品banner url

FOUNDATION_EXTERN NSString *kPropertyDataKeyGoodsDetailSkuID; //
FOUNDATION_EXTERN NSString *kPropertyDataKeyGoodsDetailSkuName; //
FOUNDATION_EXTERN NSString *kPropertyDataKeyGoodsDetailSkuValue; //
FOUNDATION_EXTERN NSString *kPropertyDataKeyGoodsDetailSkuSpliceValue; //
FOUNDATION_EXTERN NSString *kPropertyDataKeyGoodsDetailSkuAttrValueList; //
FOUNDATION_EXTERN NSString *kPropertyDataKeyGoodsDetailSkuAttrValueStringList; //



@interface LNHGoodsDetailViewModel : NSObject<LMViewModelProtocol>

@property (nonatomic) BOOL hasVideo;
@property (nonatomic) BOOL isUpgrade;
@property (nonatomic, strong) NSString *levelId;
@property (nonatomic, strong) NSString *distristId;

@property (nonatomic, strong) NSDictionary *infoDict;
@property (nonatomic, strong) NSArray *goodsImageList;
@property (nonatomic, strong) NSArray *parameterList;
@property (nonatomic, strong) NSArray *skuAttrList;
@property (nonatomic, strong) NSDictionary *skuDict;
@property (nonatomic, strong) NSMutableArray *selectSkuList;


@property (nonatomic, strong) NSString *priceStr;
@property (nonatomic, strong) NSString *stockStr;
@property (nonatomic, assign) NSInteger stock;
@property (nonatomic, strong) NSString *skuStr;

@property (nonatomic, strong) RACCommand *fetchGoodsDetailDataCommand;

-(void) skuSelectedRow:(NSInteger) row  atIndex:(NSUInteger)index;

@end
